home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 October / CHIP Turkiye Ekim 2000.iso / prog / naps / 04 / setup.exe / Gnucleus / ViewDebug.cpp < prev    next >
C/C++ Source or Header  |  2000-06-24  |  3KB  |  120 lines

  1. /********************************************************************************
  2.  
  3.     Gnucleus - A node application for the Gnutella network
  4.     Copyright (C) 2000 John Marshall
  5.  
  6.     This program is free software; you can redistribute it and/or modify
  7.     it under the terms of the GNU General Public License as published by
  8.     the Free Software Foundation; either version 2 of the License.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18.  
  19.     For support, questions, comments, etc...
  20.     E-Mail: 
  21.         swabby@c0re.net
  22.     
  23.     Address:
  24.         21 Cadogan Way
  25.         Nashua, NH, USA 03062
  26.  
  27. ********************************************************************************/
  28.  
  29. // ViewDebug.cpp : implementation file
  30. //
  31.  
  32. #include "stdafx.h"
  33. #include "Gnucleus.h"
  34. #include "GnucleusDoc.h"
  35.  
  36. #include "ViewConnect.h"
  37. #include "ViewDebug.h"
  38.  
  39. #include "GnuHash.h"
  40. #include "GnuControl.h"
  41.  
  42. #ifdef _DEBUG
  43. #define new DEBUG_NEW
  44. #undef THIS_FILE
  45. static char THIS_FILE[] = __FILE__;
  46. #endif
  47.  
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CViewDebug
  50.  
  51. IMPLEMENT_DYNCREATE(CViewDebug, CFormView)
  52.  
  53. CViewDebug::CViewDebug()
  54.     : CFormView(CViewDebug::IDD)
  55. {
  56.     //{{AFX_DATA_INIT(CViewDebug)
  57.     //}}AFX_DATA_INIT
  58.  
  59.     Strike = 0;
  60. }
  61.  
  62. CViewDebug::~CViewDebug()
  63. {
  64. }
  65.  
  66. void CViewDebug::OnInitialUpdate() 
  67. {
  68.     CFormView::OnInitialUpdate();
  69.     
  70.  
  71. }
  72.  
  73. void CViewDebug::DoDataExchange(CDataExchange* pDX)
  74. {
  75.     CFormView::DoDataExchange(pDX);
  76.     //{{AFX_DATA_MAP(CViewDebug)
  77.     DDX_Control(pDX, IDC_RICHEDIT1, m_ebLog);
  78.     //}}AFX_DATA_MAP
  79. }
  80.  
  81.  
  82. BEGIN_MESSAGE_MAP(CViewDebug, CFormView)
  83.     //{{AFX_MSG_MAP(CViewDebug)
  84.     ON_BN_CLICKED(IDC_BUTTON_SENDPING, OnButtonSendping)
  85.     ON_WM_TIMER()
  86.     //}}AFX_MSG_MAP
  87. END_MESSAGE_MAP()
  88.  
  89. /////////////////////////////////////////////////////////////////////////////
  90. // CViewDebug diagnostics
  91.  
  92. #ifdef _DEBUG
  93. void CViewDebug::AssertValid() const
  94. {
  95.     CFormView::AssertValid();
  96. }
  97.  
  98. void CViewDebug::Dump(CDumpContext& dc) const
  99. {
  100.     CFormView::Dump(dc);
  101. }
  102. #endif //_DEBUG
  103.  
  104. /////////////////////////////////////////////////////////////////////////////
  105. // CViewDebug message handlers
  106.  
  107. void CViewDebug::OnButtonSendping() 
  108. {
  109.     m_ebLog.SetWindowText("Hello\nWorld");
  110. }
  111.  
  112. void CViewDebug::OnTimer(UINT nIDEvent) 
  113. {
  114.  
  115.  
  116.     CFormView::OnTimer(nIDEvent);
  117. }
  118.  
  119.  
  120.